﻿//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Text;

//namespace ArtMath
//{
//    /// <summary>
//    /// 图的节点
//    /// </summary>
//    /// <typeparam name="T"></typeparam>
//    public class GraphNode<T>
//    {
//        public T Data { get; set; }
//        public List<GraphDirectedEdge<T>> DepartEdges { get; } = new List<GraphDirectedEdge<T>>();
//        public List<GraphDirectedEdge<T>> ArriveEdges { get; } = new List<GraphDirectedEdge<T>>();
//        public Graph<T> Graph { get; }
//        public bool IsVisited;
//        public GraphNode(T data, Graph<T> graph)
//        {
//            Data = data;
//            Graph = graph;
//        }
//        public override string ToString()
//        {
//            return Data.ToString();
//        }
//    }
//}
